package com.sj.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by yangrd on 2018/3/1
 **/
@FeignClient(value = "account-service", fallback = AccountClientHystrix.class)
public interface AccountClient {

    @GetMapping("/account")
    Account findByName(@RequestParam("name") String name);
}
